import request from '@/utils/request';
// 获取系统网络性能监测总览表格数据

export function querySystemQualityList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/overviewData',
		method: 'post',
		data: data,
	});
}

//系统网络质量监测详情

export function getSystemPerformanceInfo(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/getSystemPerformanceInfo',
		method: 'post',
		data: data,
	});
}

// 详情系统网络性能变化趋势-折线图和 网端网络性能变化趋势-折线

export function systemThrendChart(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/systemThrendChart',
		method: 'post',
		data: data,
	});
}

// 详情网段IT路径图网络性能概况

export function getDetailItRoad(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/getDetailItRoad',
		method: 'post',
		data: data,
	});
}

// 网端网络性能变化趋势-折线

export function segmentThrendChart(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/segmentThrendChart',
		method: 'post',
		data: data,
	});
}

// 系统网络组件性能变化趋势折线图

export function componentChart(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/componentChart',
		method: 'post',
		data: data,
	});
}

// 应用组件网络性能概况列表

export function getSegmentCompNetworkGrid(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/getSegmentCompNetworkGrid',
		method: 'post',
		data: data,
	});
}

// 应用组件网络性能概况详情下载

export function getCompontentDownload(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/getCompontentDownload',
		method: 'post',
		timeout: 3000000,
		data: data,
		responseType: 'blob',
	});
}

// 网络流量概况IT路径图修改节点坐标数据
export function updateSegmentPosition(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/saveOrUpdateSegmentPosition',
		method: 'post',
		data: data,
	});
}
